package com.cn.ssh2.demo.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cn.ssh2.demo.dao.IUserDao;
import com.cn.ssh2.demo.entity.User;

@Service
public class TestService {
	
	@Autowired
	private IUserDao userDao;
	
	public void test(){
		System.out.println("testService");
		User user = new User();
		user.setUsername("demo");
		userDao.save(user);
		System.out.println(userDao.findAll());
		
	}
}
